package top.lyunz.lucky.hr.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import top.lyunz.lucky.hr.bean.configMajorKind;
import top.lyunz.lucky.hr.service.configMajorKindService;
import top.lyunz.lucky.hr.tools.SimpleResult;

@Controller
public class configMajorKindController {
	@Autowired
	private  configMajorKindService configMajorKindService;
	@RequestMapping("/configMajorKindGetAll")
	@ResponseBody
	public SimpleResult configMajorKindGetAll() {
		List<configMajorKind> arr = configMajorKindService.configMajorKindGetAll();
		
		return new SimpleResult(arr); 
	}
	@RequestMapping("/configMajorKindGetBymajorKindId/{id}")
	@ResponseBody
	public SimpleResult configMajorKindGetBymajorKindId(@PathVariable("id") int id) {
		List<configMajorKind> arr = configMajorKindService.configMajorKindGetBymajorKindId(id);
		
		return new SimpleResult(arr); 
	}
}
